﻿using System.Collections;

namespace RAP.Web.Libary.Common.Model.Session
{
  /// <summary>
  /// 用户回话对象
  /// </summary>
  public class UserSessionBase : IUserSession
  {
    /// <summary>
    /// 
    /// </summary>
    public static UserSessionBase Empty { get; set; } = new UserSessionBase();

    /// <summary>
    /// 
    /// </summary>
    public IUserInfo UserInfo { get; set; }

    /// <summary>
    /// 
    /// </summary>
    public int Status { get; set; } = 1;

    /// <summary>
    /// 
    /// </summary>
    public string Token { get; set; }

    /// <summary>
    /// 
    /// </summary>
    public bool IsEmpty
    {
      get
      {
        return this == Empty;
      }
    }
  }
}
